package com.zhang;

import com.zhang.service.RedisService;
import com.zhang.utils.SpringContextUtil;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


/**
 * Hello world!
 *
 */
@SpringBootApplication(scanBasePackages = "com.zhang")
public class App implements InitializingBean{


    @Autowired
    RedisService service;

    @Autowired
    SpringContextUtil contextUtil;


    public static void main( String[] args )
    {
        SpringApplication.run(App.class,args);
    }

    public void afterPropertiesSet() throws Exception {
    }
}
